package dao

import (
	"zg3/live/global"
	"zg3/live/internal/model"
)

// FindLiveContent 查询直播间评论
func FindLiveContent(liveId uint) []model.UserComments {
	var result []model.UserComments
	if err := global.DB.Debug().Where("live_id = ?", liveId).Find(&result).Error; err != nil {
		return []model.UserComments{}
	}
	return result
}
